<?php

namespace Data\Drive;

class SetArrayKey
{
    public static function Run(&$data, $key)
    {
        $_data = [];
        foreach ($data as $k => $value) {
            $_data[$value[$key]] = $value;
        }
        return $_data;
    }
}
